<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>我的积分 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});

function checkStatus(status){
	if(status==1){
		$("#status").attr("value",'');
		$("#useStatus").attr("value",'');
	}else{
		$("#status").attr("value",status);
		$("#useStatus").attr("value",'');
	}
    $("#jvForm").submit();
 }

function checkUseStatus(useStatus){
	 $("#useStatus").attr("value",useStatus);
     $("#jvForm").submit();
}
</script>
</head>
<body>
[#--
[#include '../shop/develop/inc_head.html'/]
--]
[#include "../include/会员中心页头顶栏.html"/]
<div class="w1168">
	[#include "会员中心_导航.html"/]
	<div id="container" class="user_right">
    
    	<div class="user_title_r">
			<div class="user_title_l">我的积分</div>
            <div class="fr">
            	<a href="${base}/xsrm/20.htm"  target="_blank" style="color: #1A66B3;float:right;">查看积分规则</a>
            </div>
        </div>
            
        <div class="clear10"></div>
       
     <div class="dd_list">
        <ul id="detail-item" class="clearfix">
		    <!--
            <li class="usable-inte"><p class="available fweight">可用积分</p> <p class="fweight fsize">${member.score!}</p></li>
            <li class="overdue-inte"><p>冻结积分</p><p class="fweight fsize">${member.freezeScore!}</p></li>
       		-->
			<li style="font-family:微软雅黑; font-size:14px; color:#4b4b4b;">您目前可用积分：<font color="red" size="+0">${member.score!}</font>分</a>，您目前被冻结积分：<font color="red" size="+0">${member.freezeScore!}</font>分</a></li> 
	   </ul>		
     </div><br/>
     <div id="demo2" class="odrTab">
     <form id="jvForm" action="myscore.jspx" method="post">
        <input type="hidden" id="status" name="status" value="${status!}"/> 
        <input type="hidden" id="useStatus" name="useStatus" value="${useStatus!}"/> 
         <ul class="ul_select odrTabUl mb10">
            <li [#if !(status??)&&!(useStatus??)]class="first cur"[/#if] style="width:125px;"><a href="javascript:void(0);" onclick="checkStatus(1);">全部明细 [@score_page memberId=member.id count='10'](<span style="color:#F00; font-family:Arial;">${tag_pagination.totalCount}</span>)[/@score_page]</a></li>
            <li [#if useStatus??&useStatus==0]class="first cur"[/#if] style="width:125px;"><a href="javascript:void(0);" onclick="checkUseStatus(0);" >全部收入[@score_page memberId=member.id useStatus='0' count='10'](<span style="color:#F00; font-family:Arial;">${tag_pagination.totalCount}</span>)[/@score_page]</a></li>
            <li [#if useStatus??&useStatus==1]class="first cur"[/#if] style="width:125px;"><a href="javascript:void(0);" onclick="checkUseStatus(1);">全部支出[@score_page memberId=member.id useStatus='1' count='10'](<span style="color:#F00; font-family:Arial;">${tag_pagination.totalCount}</span>)[/@score_page]</a></li>
            <li [#if status??&status==0]class="first cur"[/#if] style="width:125px;"><a href="javascript:void(0);" onclick="checkStatus(0);">冻结积分[@score_page memberId=member.id status='0' count='10'](<span style="color:#F00; font-family:Arial;">${tag_pagination.totalCount}</span>)[/@score_page]</a></li>
            
            <div id="queryCodeNum" class="fr">
            查询时间：<input type="text" name="startTime" [#if startTime??]value="${startTime!}"[/#if] class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:80px; height:20px;"/>至:
            <input type="text" name="endTime" [#if endTime??]value="${endTime!}"[/#if] class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:80px; height:20px;"/>
            <input id="toQuery" type="submit" value="查询" class="menu_jfcx"/>
        </div>
        </ul>
        
        <div class="ks-switchable-content">
            <div>
              <table width="100%" cellpadding="0" cellspacing="0" id="detailShowtab" style="font-family:Arial,宋体">
                  <tr>
                    <td height="32" bgcolor="#f0f0f0" style="text-align:left; padding-left:20px;">来源 / 用途</td>
                    <td width="90" align="center" bgcolor="#f0f0f0">收入</td>
                    <td width="90" align="center" bgcolor="#f0f0f0">支出</td>
                    <td width="130" align="center" bgcolor="#f0f0f0">日期</td>
                    <!-- <td width="105">节省</td> -->
                    <td width="270" align="center" bgcolor="#f0f0f0">备注</td>
                 </tr>
             
                [@score_page memberId=member.id status=status useStatus=useStatus startTime=startTime endTime=endTime count='10']
                [#if tag_list?size gt 0]
                [#list tag_list as shopScore]
                <tr>
                <td valign="middle" style="text-align:left;vertical-align: middle; height:60px;">
                [#if shopScore.orderItem??]<img src="${root!}${shopScore.orderItem.product.productExt.coverImg!}" width="43" height="43" style="float:left; margin:0 10px;"/>[/#if]
                <div style="float:left;">[@text_cut s=shopScore.name len='20' append="..."/]</div>
                </td>
                <td align="center">[#if !(shopScore.useStatus)]${shopScore.score!0}([#if shopScore.status]可用[#else]冻结[/#if])[/#if]</td>
                <td align="center">[#if shopScore.useStatus]${shopScore.score!0}[/#if]</td>
                <td align="center">${shopScore.scoreTime!}</td>
                <!--  <td></td> -->
                <td>${shopScore.remark!}</td>
                </tr>
                <tr>
                	<td height="1" colspan="5" bgcolor="#e7e7e7"></td>
                </tr>
                [/#list]
                <tr align="center"><td height="32" colspan="5">[@pagination_style sysPage='3'/]</td></tr>
                [#else]
                <tr align="center">
                <td colspan="5" class="zwsj">
                [#if !(status??)&&!(useStatus??)]
                暂无支出与收入 ，这就去<a href="${base}/" style="color:#F00;">JSPGOU商城</a>购买商品获得积分。
                [#elseif !(status??)&&useStatus==0]
                暂无收入，这就去<a href="${base}/" style="color:#F00;">JSPGOU商城</a>购买商品获得积分。
                [#elseif !(status??)&&useStatus==1]
                暂无支出，这就去<a href="${base}/" style="color:#F00;">JSPGOU商城</a>购买商品兑换积分。
                [#elseif !(useStatus??)&&status==0]
                暂无冻结积分 ，这就去<a href="${base}/" style="color:#F00;">JSPGOU商城</a>兑换商品。
                [/#if]                             
                </td>
                </tr>
                [/#if]
                [/@score_page]
            
          </table>
         </div>
      </div>
     </form>
   </div>
</div>

	<div class="clear10"></div>
	<div class="clear10"></div>
</div>
[#--<p>[#include 'inc_member_function.html'/]</p>
<div>[@process_time/]</div>
--]
[#include "../include/页脚信息栏.html"/]
</body>
</html>